@use 'sass:math';
$cppr: 75rem;
$--red: #df3429;
$--orange: #f37b1d;
$--yellow: #fbbd08;
$--olive: #8dc63f;
$--green: #4dc67e;
$--cyan: #1cbbb4;
$--blue: #3787f2;
$--purple: #6739b6;
$--mauve: #9c26b0;
$--pink: #e03997;
$--brown: #f58352;
$--grey: #8799a3;
$--black: #232424;
$--darkGray: #444;
$--gray: #606266;
$--ghostWhite: #f1f1f1;
$--white: #ffffff;
/* 浅色 */
$--redLight: #fadbd9;
$--orangeLight: #fef3ee;
$--yellowLight: #fef2ce;
$--oliveLight: #e8f4d9;
$--greenLight: #f1faf5;
$--cyanLight: #d2f1f0;
$--blueLight: #cce6ff;
$--purpleLight: #e1d7f0;
$--mauveLight: #ebd4ef;
$--pinkLight: #f9d7ea;
$--brownLight: #ede1d9;
$--greyLight: #e7ebed;
$--mainRed: #d32f2f;
$--mainGreen: #358f80;
$--mainOrange: #ef6c00;

/* 渐变色 */
$--gradualRed: linear-gradient(45deg, #f43f3b, #ec008c);
$--gradualOrange: linear-gradient(45deg, #ff9700, #ed1c24);
$--gradualGreen: linear-gradient(45deg, #39b54a, #8dc63f);
$--gradualPurple: linear-gradient(45deg, #9000ff, #5e00ff);
$--gradualPink: linear-gradient(45deg, #ec008c, #6739b6);
$--gradualBlue: linear-gradient(45deg, #0081ff, #1cbbb4);
/* 阴影透明色 */
$--ShadowSize: 6px 6px 8px; /*阴影背景大小*/
$--redShadow: rgba(204, 69, 59, 0.2);
$--orangeShadow: rgba(217, 109, 26, 0.2);
$--yellowShadow: rgba(224, 170, 7, 0.2);
$--oliveShadow: rgba(124, 173, 55, 0.2);
$--greenShadow: rgba(48, 156, 63, 0.2);
$--cyanShadow: rgba(28, 187, 180, 0.2);
$--blueShadow: rgba(0, 102, 204, 0.2);
$--purpleShadow: rgba(88, 48, 156, 0.2);
$--mauveShadow: rgba(133, 33, 150, 0.2);
$--pinkShadow: rgba(199, 50, 134, 0.2);
$--brownShadow: rgba(140, 88, 53, 0.2);
$--greyShadow: rgba(114, 130, 138, 0.2);
$--grayShadow: rgba(114, 130, 138, 0.2);
$--blackShadow: rgba(26, 26, 26, 0.2);

$fontSize: 2;
.small-width {
  width: 120px;
  min-width: 60px;
}
.mini-width {
  min-width: 100px;
}

.all-width {
  width: 100%;
}
.thirty-width {
  width: 30%;
}
.half-with {
  width: 50%;
}
.eighty-width {
  width: 80%;
}
.xs-height {
  height: 50px;
}
.sm-height {
  height: 100px;
}
.lg-heigth {
  height: 300px;
}

.thirty-width {
  width: 30%;
}
.half-with {
  width: 50%;
}
.eighty-width {
  width: 80%;
}
.xs-height {
  height: 50px;
}
.sm-height {
  height: 100px;
}
.lg-heigth {
  height: 300px;
}

// @for $i from 1 through 1000 {
//   .height-#{$i} {
//     height: #{$i}px;
//   }
//   .width-#{$i} {
//     width: #{$i}px;
//   }
// }
// @for $i from 1 through 5 {
//   .ellipse-#{$i} {
//     display: -webkit-box;
//     overflow: hidden;
//     text-overflow: ellipsis;
//     word-break: break-all;
//     -webkit-box-orient: vertical;
//     -webkit-line-clamp: #{$i};
//   }
// }
// $overflow: visible, hidden, scroll, auto, inherit;
// @each $var in $overflow {
//   .overflow-#{$var} {
//     overflow: #{$var};
//   }
// }
.bottom-dashed {
  border-bottom: 0.5px dashed rgb(187, 187, 187);
  padding-bottom: 0px;
}
.height-full {
  height: 100%;
}

.width-full {
  width: 100%;
}

// 文本文字
.text-bold {
  font-weight: bold;
}

.text-center {
  text-align: center;
}
.text-xs {
  font-size: math.div(20px, $fontSize);
}

.text-sm {
  font-size: math.div(24px, $fontSize);
}

.text-df {
  font-size: math.div(28px, $fontSize);
}

.text-lg {
  font-size: math.div(32px, $fontSize);
}

.text-xl {
  font-size: math.div(40px, $fontSize);
}
.text-xll {
  font-size: math.div(80px, $fontSize);
}
.text-xxl {
  font-size: math.div(44px, $fontSize);
}

.text-sl {
  font-size: math.div(80px, $fontSize);
}

.text-red,
.line-red,
.lines-red {
  color: ($--red);
}

.text-main-red,
.line-main-red,
.lines-main-red {
  color: ($--mainRed);
}

.text-main-green,
.line-main-green,
.lines-main-green {
  color: ($--mainGreen);
}
.text-main-orange,
.line-main-orange,
.lines-main-orange {
  color: ($--mainOrange);
}
.bg-main-red {
  background-color: ($--mainRed);
  color: ($--white);
}
.bg-main-green {
  background-color: ($--mainGreen);
  color: ($--white);
}
.bg-main-orange {
  background-color: ($--mainOrange);
  color: ($--white);
}

.text-yellow,
.line-yellow,
.lines-yellow {
  color: ($--yellow);
}

.text-grey,
.line-grey,
.lines-grey {
  color: ($--grey);
}

.text-gray,
.line-gray,
.lines-gray {
  color: ($--gray);
}

.text-black,
.line-black,
.lines-black {
  color: ($--black);
}

.text-white,
.line-white,
.lines-white {
  color: ($--white);
}
/* ==================
          布局
 ==================== */

/*  -- flex弹性布局 -- */

.flex {
  display: flex;
}

.basis-xs {
  flex-basis: 20%;
}

.basis-sm {
  flex-basis: 40%;
}

.basis-df {
  flex-basis: 50%;
}

.basis-lg {
  flex-basis: 60%;
}

.basis-xl {
  flex-basis: 80%;
}

.flex-sub {
  flex: 1;
}

.flex-twice {
  flex: 2;
}

.flex-treble {
  flex: 3;
}

.flex-direction {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.align-start {
  align-items: flex-start;
}

.align-end {
  align-items: flex-end;
}

.align-center {
  align-items: center;
}

.align-stretch {
  align-items: stretch;
}

.self-center {
  align-self: flex-center;
}

.justify-start {
  justify-content: flex-start;
}

.justify-end {
  justify-content: flex-end;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-around {
  justify-content: space-around;
}

/*  -- 内外边距 -- */

.margin-center {
  margin: 0 auto;
}

.margin-xs {
  margin: 10px;
}

.margin-sm {
  margin: 20px;
}

.margin {
  margin: 30px;
}

.margin-lg {
  margin: 40px;
}

.margin-xl {
  margin: 50px;
}

.margin-top-xs {
  margin-top: 10px;
}

.margin-top-sm {
  margin-top: 20px;
}

.margin-top {
  margin-top: 30px;
}

.margin-top-lg {
  margin-top: 40px;
}

.margin-top-xl {
  margin-top: 50px;
}

.margin-right-xs {
  margin-right: 10px;
}

.margin-right-sm {
  margin-right: 20px;
}

.margin-right {
  margin-right: 30px;
}

.margin-right-lg {
  margin-right: 40px;
}

.margin-right-xl {
  margin-right: 50px;
}
.margin-right-mini{
  margin-right: 4px;
}
.margin-left-mini{
  margin-left:4px
}
.margin-bottom-mini {
  margin-bottom: 5px;
}
.padding-bottom-mini {
  padding-bottom: 5px;
}
.margin-bottom-xs {
  margin-bottom: 10px;
}

.margin-bottom-sm {
  margin-bottom: 20px;
}

.margin-bottom {
  margin-bottom: 30px;
}

.margin-bottom-lg {
  margin-bottom: 40px;
}

.margin-bottom-xl {
  margin-bottom: 50px;
}

.margin-left-xs {
  margin-left: 10px;
}

.margin-left-sm {
  margin-left: 20px;
}

.margin-left {
  margin-left: 30px;
}

.margin-left-lg {
  margin-left: 40px;
}

.margin-left-xl {
  margin-left: 50px;
}

.margin-lr-xs {
  margin-left: 10px;
  margin-right: 10px;
}

.margin-lr-sm {
  margin-left: 20px;
  margin-right: 20px;
}

.margin-lr {
  margin-left: 30px;
  margin-right: 30px;
}

.margin-lr-lg {
  margin-left: 40px;
  margin-right: 40px;
}

.margin-lr-xl {
  margin-left: 50px;
  margin-right: 50px;
}

.margin-tb-xs {
  margin-top: 10px;
  margin-bottom: 10px;
}

.margin-tb-sm {
  margin-top: 20px;
  margin-bottom: 20px;
}

.margin-tb {
  margin-top: 30px;
  margin-bottom: 30px;
}

.margin-tb-lg {
  margin-top: 40px;
  margin-bottom: 40px;
}

.margin-tb-xl {
  margin-top: 50px;
  margin-bottom: 50px;
}

.padding-xs {
  padding: 10px;
}

.padding-sm {
  padding: 20px;
}

.padding {
  padding: 30px;
}

.padding-lg {
  padding: 40px;
}

.padding-xl {
  padding: 50px;
}

.padding-top-xs {
  padding-top: 10px;
}

.padding-top-sm {
  padding-top: 20px;
}

.padding-top {
  padding-top: 30px;
}

.padding-top-lg {
  padding-top: 40px;
}

.padding-top-xl {
  padding-top: 50px;
}

.padding-right-xs {
  padding-right: 10px;
}

.padding-right-sm {
  padding-right: 20px;
}

.padding-right {
  padding-right: 30px;
}

.padding-right-lg {
  padding-right: 40px;
}

.padding-right-xl {
  padding-right: 50px;
}

.padding-bottom-xs {
  padding-bottom: 10px;
}

.padding-bottom-sm {
  padding-bottom: 20px;
}

.padding-bottom {
  padding-bottom: 30px;
}

.padding-bottom-lg {
  padding-bottom: 40px;
}

.padding-bottom-xl {
  padding-bottom: 50px;
}

.padding-left-xs {
  padding-left: 10px;
}

.padding-left-sm {
  padding-left: 20px;
}

.padding-left {
  padding-left: 30px;
}

.padding-left-lg {
  padding-left: 40px;
}

.padding-left-xl {
  padding-left: 50px;
}

.padding-lr-xs {
  padding-left: 10px;
  padding-right: 10px;
}

.padding-lr-sm {
  padding-left: 20px;
  padding-right: 20px;
}

.padding-lr {
  padding-left: 30px;
  padding-right: 30px;
}

.padding-lr-lg {
  padding-left: 40px;
  padding-right: 40px;
}

.padding-lr-xl {
  padding-left: 50px;
  padding-right: 50px;
}

.padding-tb-xs {
  padding-top: 10px;
  padding-bottom: 10px;
}

.padding-tb-sm {
  padding-top: 20px;
  padding-bottom: 20px;
}

.padding-tb {
  padding-top: 30px;
  padding-bottom: 30px;
}

.padding-tb-lg {
  padding-top: 40px;
  padding-bottom: 40px;
}

.padding-tb-xl {
  padding-top: 50px;
  padding-bottom: 50px;
}

.bg-red {
  background-color: ($--red);
  color: ($--white);
}

.bg-orange {
  background-color: ($--orange);
  color: ($--white);
}

.bg-yellow {
  background-color: ($--yellow);
  color: ($--black);
}

.bg-olive {
  background-color: ($--olive);
  color: ($--white);
}

.bg-green {
  background-color: ($--green);
  color: ($--white);
}

.bg-cyan {
  background-color: ($--cyan);
  color: ($--white);
}

.bg-blue {
  background-color: ($--blue);
  color: ($--white);
}

.bg-purple {
  background-color: ($--purple);
  color: ($--white);
}

.bg-mauve {
  background-color: ($--mauve);
  color: ($--white);
}

.bg-pink {
  background-color: ($--pink);
  color: ($--white);
}

.bg-brown {
  background-color: ($--brown);
  color: ($--white);
}

.bg-grey {
  background-color: ($--grey);
  color: ($--white);
}

.bg-gray {
  background-color: #f0f0f0;
  color: ($--black);
}

.bg-black {
  background-color: ($--black);
  color: ($--white);
}

.bg-white {
  background-color: ($--white);
  color: ($--darkGray);
}

.bg-shadeTop {
  background-image: linear-gradient(rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.01));
  color: ($--white);
}

.bg-shadeBottom {
  background-image: linear-gradient(rgba(0, 0, 0, 0.01), rgba(0, 0, 0, 1));
  color: ($--white);
}

.text-blue,
.line-blue,
.lines-blue {
  color: ($--blue);
}

.text-orange,
.line-orange,
.lines-orange {
  color: ($--orange);
}

.text-olive,
.line-olive,
.lines-olive {
  color: ($--olive);
}

.text-green,
.line-green,
.lines-green {
  color: ($--green);
}

.text-cyan,
.line-cyan,
.lines-cyan {
  color: ($--cyan);
}

.text-purple,
.line-purple,
.lines-purple {
  color: ($--purple);
}

.text-mauve,
.line-mauve,
.lines-mauve {
  color: ($--mauve);
}

.text-pink,
.line-pink,
.lines-pink {
  color: ($--pink);
}

.text-brown,
.line-brown,
.lines-brown {
  color: ($--brown);
}

.text-Abc {
  text-transform: Capitalize;
}

.text-ABC {
  text-transform: Uppercase;
}

.text-abc {
  text-transform: Lowercase;
}

.text-price::before {
  content: '¥';
  font-size: 80%;
  margin-right: 4px;
}

.text-cut {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.text-content {
  line-height: 1.6;
}

.text-xsl {
  font-size: math.div(120px, $fontSize);
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.self-start {
  align-self: flex-start;
}
.self-end {
  align-self: flex-end;
}

.self-stretch {
  align-self: stretch;
}

.align-stretch {
  align-items: stretch;
}

.margin-0 {
  margin: 0;
}

.padding-0 {
  padding: 0;
}
/* ==================
          背景
 ==================== */

.line-red::after,
.lines-red::after {
  border-color: ($--red);
}

.line-orange::after,
.lines-orange::after {
  border-color: ($--orange);
}

.line-yellow::after,
.lines-yellow::after {
  border-color: ($--yellow);
}

.line-olive::after,
.lines-olive::after {
  border-color: ($--olive);
}

.line-green::after,
.lines-green::after {
  border-color: ($--green);
}

.line-cyan::after,
.lines-cyan::after {
  border-color: ($--cyan);
}

.line-blue::after,
.lines-blue::after {
  border-color: ($--blue);
}

.line-purple::after,
.lines-purple::after {
  border-color: ($--purple);
}

.line-mauve::after,
.lines-mauve::after {
  border-color: ($--mauve);
}

.line-pink::after,
.lines-pink::after {
  border-color: ($--pink);
}

.line-brown::after,
.lines-brown::after {
  border-color: ($--brown);
}

.line-grey::after,
.lines-grey::after {
  border-color: ($--grey);
}

.line-gray::after,
.lines-gray::after {
  border-color: ($--gray);
}

.line-black::after,
.lines-black::after {
  border-color: ($--black);
}

.line-white::after,
.lines-white::after {
  border-color: ($--white);
}

.bg-red.light {
  color: ($--red);
  background-color: ($--redLight);
}

.bg-orange.light {
  color: ($--black);
  background-color: ($--orangeLight);
}

.bg-yellow.light {
  color: ($--yellow);
  background-color: ($--yellowLight);
}

.bg-olive.light {
  color: ($--olive);
  background-color: ($--oliveLight);
}

.bg-green.light {
  color: ($--black);
  background-color: ($--greenLight);
}

.bg-cyan.light {
  color: ($--cyan);
  background-color: ($--cyanLight);
}

.bg-blue.light {
  color: ($--blue);
  background-color: ($--blueLight);
}

.bg-purple.light {
  color: ($--purple);
  background-color: ($--purpleLight);
}

.bg-mauve.light {
  color: ($--mauve);
  background-color: ($--mauveLight);
}

.bg-pink.light {
  color: ($--pink);
  background-color: ($--pinkLight);
}

.bg-brown.light {
  color: ($--brown);
  background-color: ($--brownLight);
}

.bg-grey.light {
  color: ($--grey);
  background-color: ($--greyLight);
}

.bg-gradual-red {
  background-image: ($--gradualRed);
  color: ($--white);
}

.bg-gradual-orange {
  background-image: ($--gradualOrange);
  color: ($--white);
}

.bg-gradual-green {
  background-image: ($--gradualGreen);
  color: ($--white);
}

.bg-gradual-purple {
  background-image: ($--gradualPurple);
  color: ($--white);
}

.bg-gradual-pink {
  background-image: ($--gradualPink);
  color: ($--white);
}

.bg-gradual-blue {
  background-image: ($--gradualBlue);
  color: ($--white);
}

.shadow[class*='-red'] {
  box-shadow: ($--ShadowSize) ($--redShadow);
}

.shadow[class*='-orange'] {
  box-shadow: ($--ShadowSize) ($--orangeShadow);
}

.shadow[class*='-yellow'] {
  box-shadow: ($--ShadowSize) ($--yellowShadow);
}

.shadow[class*='-olive'] {
  box-shadow: ($--ShadowSize) ($--oliveShadow);
}

.shadow[class*='-green'] {
  box-shadow: ($--ShadowSize) ($--greenShadow);
}

.shadow[class*='-cyan'] {
  box-shadow: ($--ShadowSize) ($--cyanShadow);
}

.shadow[class*='-blue'] {
  box-shadow: ($--ShadowSize) ($--blueShadow);
}

.shadow[class*='-purple'] {
  box-shadow: ($--ShadowSize) ($--purpleShadow);
}

.shadow[class*='-mauve'] {
  box-shadow: ($--ShadowSize) ($--mauveShadow);
}

.shadow[class*='-pink'] {
  box-shadow: ($--ShadowSize) ($--pinkShadow);
}

.shadow[class*='-brown'] {
  box-shadow: ($--ShadowSize) ($--brownShadow);
}

.shadow[class*='-grey'] {
  box-shadow: ($--ShadowSize) ($--greyShadow);
}

.shadow[class*='-gray'] {
  box-shadow: ($--ShadowSize) ($--grayShadow);
}

.shadow[class*='-black'] {
  box-shadow: ($--ShadowSize) ($--blackShadow);
}

.shadow[class*='-white'] {
  box-shadow: ($--ShadowSize) ($--blackShadow);
}

.text-shadow[class*='-red'] {
  text-shadow: ($--ShadowSize) ($--redShadow);
}

.text-shadow[class*='-orange'] {
  text-shadow: ($--ShadowSize) ($--orangeShadow);
}

.text-shadow[class*='-yellow'] {
  text-shadow: ($--ShadowSize) ($--yellowShadow);
}

.text-shadow[class*='-olive'] {
  text-shadow: ($--ShadowSize) ($--oliveShadow);
}

.text-shadow[class*='-green'] {
  text-shadow: ($--ShadowSize) ($--greenShadow);
}

.text-shadow[class*='-cyan'] {
  text-shadow: ($--ShadowSize) ($--cyanShadow);
}

.text-shadow[class*='-blue'] {
  text-shadow: ($--ShadowSize) ($--blueShadow);
}

.text-shadow[class*='-purple'] {
  text-shadow: ($--ShadowSize) ($--purpleShadow);
}

.text-shadow[class*='-mauve'] {
  text-shadow: ($--ShadowSize) ($--mauveShadow);
}

.text-shadow[class*='-pink'] {
  text-shadow: ($--ShadowSize) ($--pinkShadow);
}

.text-shadow[class*='-brown'] {
  text-shadow: ($--ShadowSize) ($--brownShadow);
}

.text-shadow[class*='-grey'] {
  text-shadow: ($--ShadowSize) ($--greyShadow);
}

.text-shadow[class*='-gray'] {
  text-shadow: ($--ShadowSize) ($--grayShadow);
}

.text-shadow[class*='-black'] {
  text-shadow: ($--ShadowSize) ($--blackShadow);
}

/* ==================
          边框
 ==================== */

/* -- 实线 -- */

.solid,
.solid-top,
.solid-right,
.solid-bottom,
.solid-left,
.solids,
.solids-top,
.solids-right,
.solids-bottom,
.solids-left,
.dashed,
.dashed-top,
.dashed-right,
.dashed-bottom,
.dashed-left {
  position: relative;
}

.solid::after,
.solid-top::after,
.solid-right::after,
.solid-bottom::after,
.solid-left::after,
.solids::after,
.solids-top::after,
.solids-right::after,
.solids-bottom::after,
.solids-left::after,
.dashed::after,
.dashed-top::after,
.dashed-right::after,
.dashed-bottom::after,
.dashed-left::after {
  content: ' ';
  width: 200%;
  height: 200%;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: inherit;
  transform: scale(0.5);
  transform-origin: 0 0;
  pointer-events: none;
  box-sizing: border-box;
}

.solid::after {
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.solid-top::after {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.solid-right::after {
  border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.solid-bottom::after {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.solid-left::after {
  border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.solids::after {
  border: 8px solid #eee;
}

.solids-top::after {
  border-top: 8px solid #eee;
}

.solids-right::after {
  border-right: 8px solid #eee;
}

.solids-bottom::after {
  border-bottom: 8px solid #eee;
}

.solids-left::after {
  border-left: 8px solid #eee;
}

/* -- 虚线 -- */

.dashed::after {
  border: 1px dashed #ddd;
}

.dashed-top::after {
  border-top: 1px dashed #ddd;
}

.dashed-right::after {
  border-right: 1px dashed #ddd;
}

.dashed-bottom::after {
  border-bottom: 1px dashed #ddd;
}

.dashed-left::after {
  border-left: 1px dashed #ddd;
}

/* -- 阴影 -- */

.shadow[class*='white'] {
  --ShadowSize: 0 1px 6px;
}

.shadow-lg {
  --ShadowSize: 0px 40px 100px 0px;
}

.shadow-warp {
  position: relative;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.shadow-warp:before,
.shadow-warp:after {
  position: absolute;
  content: '';
  top: 20px;
  bottom: 30px;
  left: 20px;
  width: 50%;
  box-shadow: 0 30px 20px rgba(0, 0, 0, 0.2);
  transform: rotate(-3deg);
  z-index: -1;
}

.shadow-warp:after {
  right: 20px;
  left: auto;
  transform: rotate(3deg);
}

.shadow-blur {
  position: relative;
}

.shadow-blur::before {
  content: '';
  display: block;
  background: inherit;
  filter: blur(10px);
  position: absolute;
  width: 100%;
  height: 100%;
  top: 10px;
  left: 10px;
  z-index: -1;
  opacity: 0.4;
  transform-origin: 0 0;
  border-radius: inherit;
  transform: scale(1, 1);
}
